<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-model in checkbox</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 使用 v-model 绑定复选框和 isChecked 数据 -->
        <input v-model="isChecked" type="checkbox">
        <p>复选框的状态是: {{ isChecked }}</p>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                // 初始化 isChecked 数据
                isChecked: false
            }
        });
    </script>
</body>

</html>